# the minimum version of CMake.
cmake_minimum_required(VERSION 3.4.1)
project(entry)

#set(CMAKE_VERBOSE_MAKEFILE on)
#set(libs "${CMAKE_SOURCE_DIR}/src/main/jniLibs")
#include_directories(${CMAKE_SOURCE_DIR}/src/main/cpp/include)

# 添加opencv的头文件目录
include_directories(${CMAKE_SOURCE_DIR}/src/main/cpp/include)

## 导入opencv的so
#add_library(opencv_java4 SHARED IMPORTED)
#set_target_properties(opencv_java4 PROPERTIES IMPORTED_LOCATION
#        ${CMAKE_SOURCE_DIR}/src/main/jniLibs/${ANDROID_ABI}/libopencv_java4.so)

#add_library(c++_shared SHARED IMPORTED)
#set_target_properties(c++_shared PROPERTIES IMPORTED_LOCATION
#        ${CMAKE_SOURCE_DIR}/src/main/jniLibs/${ANDROID_ABI}/libc++_shared.so)

add_library(hello SHARED src/main/cpp/hello.cpp)

target_link_libraries(
    hello
    #opencv_java4
    #c++_shared
)